const path = require('path')
const resolve = dir => path.join(__dirname, dir)

module.exports = {
  chainWebpack: config => {
    // 设置快捷路径， @ 表示 'src' ，components 表示 'src/components'
    config.resolve.alias
      // .set('@', resolve('src'))
      .set('@',resolve('./src'))
      .set('components',resolve('./src/components'))
      .set('common',resolve('./src/common'))
      .set('assets',resolve('./src/assets'))
      .set('network',resolve('./src/network'))
  },
}